package com.example.demo.BookService.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.BookWithUser;

import java.util.List;

public interface BookWithUserService {

    /**
     * 将图书添加到借阅中
     * @param bookWithUser
     */
    void insert(BookWithUser bookWithUser);

    /**
     * 续借书籍
     * @param bookWithUser
     */
    void update(BookWithUser bookWithUser);

    /**
     * 删除一条借阅记录
     * @param bookWithUser
     */
    void deleteRecord(BookWithUser bookWithUser);

    /**
     * 批量删除借阅记录
     * @param bookWithUsers
     */
    void deleteRecords(List<BookWithUser> bookWithUsers);

    /**
     * 分页查询借阅记录
     * @param pageNum
     * @param pageSize
     * @param search1
     * @param search2
     * @param search3
     * @return
     */
    Page<BookWithUser> selectPage(Integer pageNum, Integer pageSize, String search1, String search2, String search3);
}
